package com.scott.aop.service;

import com.scott.aop.model.Member;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 成员管理
 */
@Service
public class MemberManagerService {
    private final static org.slf4j.Logger log = LoggerFactory.getLogger(MemberManagerService.class);

    public void save(Member member){
        log.info("增加用户");
    }

    public boolean remove(long id) throws Exception{
        log.info("删除用户");
        throw new Exception("这是自己抛出来的异常");
    }

    public boolean modify(Member member){
        log.info("删除用户");
        return true;
    }

    public boolean query(String loginName) {
        log.info("查询用户");
        return true;
    }
}
